<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib uri="http://tiles.apache.org/tags-tiles" prefix="tiles" %>

<link href="${basePath}/static/css/medicalRecord_Search/FilePicture_Manage.css" rel="stylesheet" type="text/css">
<div class="file_manage">
    <div class="file_title">
        <h3>病案查询&gt;图片预览</h3>
        <ul>
            <li><a onclick="custom_close()" id="closeBtn2">关闭</a></li>
        </ul>
    </div>
    <div class="file_content">
        <div class="file_header">
            <div class="left">文件信息</div><div class="right">文件总数：<span id="totalPage">${count}</span><span>个</span></div>
        </div>
        <div class="filePage" id="filepage">
            <ul>
            	<c:set value="1" var="scanFileIndex"/>
            	<c:forEach var="scanFile" items="${scanFiles }">
            		<li data-filename="${scanFileIndex}">
            			<img width="100%" height="100%"  src="${hospitalizationNoteResourceUrl}${scanFile.fileUrl}${scanFile.fileName}" alt="">
	                </li>
            		<c:set value="${scanFileIndex +1 }" var="scanFileIndex"/>
            	</c:forEach>
            </ul>
        </div>
    </div>
    <div class="file_table">
    	<c:if test="${not empty hospitalizationNotes }"></c:if>
    	<p class="line">姓　名: <span>${hospitalizationNotes[0].name}</span></p>
    	<p class="line">身份证号: <span>${hospitalizationNotes[0].id_number}</span></p>
        <p class="line">识别码: <span>${hospitalizationNotes[0].mr_id}</span></p>
        <p class="line">出院日期: <span><fmt:formatDate value="${hospitalizationNotes[0].out_hospital_date}" pattern="yyyy-MM-dd"/></span></p>
        <p class="line">就诊类型: <span>${hospitalizationNotes[0].treatment_type_name}</span></p>
        <p class="line">所属医院: <span>${hospitalizationNotes[0].hospital_name}</span></p>
        
    </div>
</div>
<script type="text/javascript" src="${basePath}/static/js/util.js"></script>
